package pe.com.grupobbva.ohc.hy31;

public class MS_OHC_HY31PortTypeProxy implements pe.com.grupobbva.ohc.hy31.MS_OHC_HY31PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy31.MS_OHC_HY31PortType mS_OHC_HY31PortType = null;
  
  public MS_OHC_HY31PortTypeProxy() {
    _initMS_OHC_HY31PortTypeProxy();
  }
  
  public MS_OHC_HY31PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initMS_OHC_HY31PortTypeProxy();
  }
  
  private void _initMS_OHC_HY31PortTypeProxy() {
    try {
      mS_OHC_HY31PortType = (new pe.com.grupobbva.ohc.hy31.OHC_HY31_ServiceLocator()).getOHC_HY31_Port();
      if (mS_OHC_HY31PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)mS_OHC_HY31PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)mS_OHC_HY31PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (mS_OHC_HY31PortType != null)
      ((javax.xml.rpc.Stub)mS_OHC_HY31PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy31.MS_OHC_HY31PortType getMS_OHC_HY31PortType() {
    if (mS_OHC_HY31PortType == null)
      _initMS_OHC_HY31PortTypeProxy();
    return mS_OHC_HY31PortType;
  }
  
  public pe.com.grupobbva.ohc.hy31.CtConOhcHY31Rs callHY31(pe.com.grupobbva.ohc.hy31.CtConOhcHY31Rq conOhcHY31Rq) throws java.rmi.RemoteException{
    if (mS_OHC_HY31PortType == null)
      _initMS_OHC_HY31PortTypeProxy();
    return mS_OHC_HY31PortType.callHY31(conOhcHY31Rq);
  }
  
  
}